<?php

/**
 * Framework_Presenter_Smarty_ShowDebug
 *
 * @author Application Support Group
 * @copyright University of Georgia
 * @license http://www.opensource.org/licenses/gpl-license.php
 * @package BAMF
 * @filesource
*/


/**
 * Framework_Presenter_Smarty_ShowDebug
 *
 *
 * @author Application Support Group
 * @package BAMF
 * @link http://smarty.php.net
*/
class Framework_Presenter_Smarty_ShowDebug extends Framework_Presenter_Smarty_Extension {

	public function __construct() {
		parent::__construct() ;
	}

	public static function register( &$smartyObj ) {
		$smartyObj->register_modifier( 
			"showDebug", 
			array( __CLASS__, "smarty_modifier_showDebug" )
			) ;
	}

	// yet another way to get the contents of a variable to screen
	public function smarty_modifier_showDebug( $aVar ) {
		print( "<pre>" ) ;
		print_r( $aVar ) ;
		print( "</pre>" ) ;
	}

	public function __destruct() {}

}
